<div id="linklist">
	<%= error_messages_for 'userlink' -%>
	<ul>
	<% if user_to_edit -%>
		<% user_to_edit.get_all_links.each do |link| -%>
			<li>
				<% form_remote_tag :url => { :controller => :user, :action => :remove_link, :id => user_to_edit.id } do %>
					<%= hidden_field_tag 'url', link %>
					<%= submit_tag "-" %>
				<% end %>
				<%= "<a href=\"#{link}\">#{link}</a>" %>
			</li>
		<% end %>
	<% end %>
	</ul>
</div>